﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BranchMultiplePicker.aspx.cs" Inherits="ZHDJ.Web.App.Share.Picker.BranchMultiplePicker" %>


<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" runat="server" ShowBorder="True" EnableCollapse="true"
            Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start"
            BoxConfigChildMargin="0 0 0 0" BodyPadding="5px" ShowHeader="false">
            <Toolbars>
                <f:Toolbar ID="Toolbar3" runat="server" >
                    <Items>
                        <f:TwinTriggerBox ID="ttbSearchMessage" Width="300px" runat="server" ShowLabel="false"
                            EmptyText="在组织名称中搜索" Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false"
                            OnTrigger2Click="ttbSearchMessage_Trigger2Click" OnTrigger1Click="ttbSearchMessage_Trigger1Click">
                        </f:TwinTriggerBox>
                    </Items>
                </f:Toolbar>
                <f:Toolbar ID="Toolbar5" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>


                        <f:Button ID="Button3" ValidateForms="SimpleForm1" Icon="SystemSaveClose" OnClick="btnSaveClose_Click"
                            runat="server" Text="选择后关闭">
                        </f:Button>
                        <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                        </f:ToolbarSeparator>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>

            <Items>
                <f:Panel ID="Panel3" Title="面板3" BoxFlex="3" runat="server" Layout="Fit" Margin="0 5 0 0"
                    ShowBorder="false" ShowHeader="false">
                    <Items>
                        <f:Tree ID="TreeBranch" Width="650px"  EnableCollapse="true" OnNodeCheck="TreeBranch_NodeCheck"
                            ShowHeader="false" Title="组织" runat="server">
                        </f:Tree>
                    </Items>
                </f:Panel>
                <f:Panel ID="Panel2" Title="面板3" BoxFlex="2" runat="server" Layout="Fit" Margin="0 5 0 0"
                    ShowBorder="false" ShowHeader="false">
                    <Items>
                          <f:Grid ID="GridSelect" runat="server"  ShowBorder="true" ShowHeader="false"
                            EnableCheckBoxSelect="true" BodyPadding="0"
                            DataKeyNames="BranchID,BranchName" AllowSorting="false" SortField="BranchName"
                            SortDirection="DESC" AllowPaging="false" IsDatabasePaging="true"
                
                            OnRowCommand="GridSelect_RowCommand">
                            <Toolbars>
                                <f:Toolbar ID="Toolbar2" runat="server">
                                    <Items>

                                        <f:Button ID="Button1" Icon="GroupEdit" EnablePostBack="false" runat="server"
                                            Text="移除已选择的组织">
                                            <Menu runat="server">
                                                <f:MenuButton ID="btnRemoveSelectUsers" OnClick="btnRemoveSelectBranch_Click" 
                                                    runat="server" Text="移除选中组织">
                                                </f:MenuButton>
                                                <f:MenuButton ID="btnRemoveAllUsers" OnClick="btnRemoveAllBranch_Click" runat="server"
                                                    Text="移除所有组织">
                                                </f:MenuButton>
                                            </Menu>
                                        </f:Button>


                                    </Items>
                                </f:Toolbar>
                            </Toolbars>

                            <Columns>
                                <f:RowNumberField Width="35px" ColumnID="dd"  />
                                <f:BoundField DataField="BranchName" SortField="BranchName"  ExpandUnusedSpace="true" HeaderText="组织名称" />
                             
                                <f:LinkButtonField ColumnID="deleteField"  Icon="Delete" ToolTip="移除" 
                                    CommandName="Remove" Width="50px" />
                            </Columns>
                        </f:Grid>

                    </Items>
                </f:Panel>
            </Items>
        </f:Panel>
        <f:HiddenField ID="hfSelectedIDS" runat="server">
        </f:HiddenField>
          <f:HiddenField ID="hdSelectBranchs" runat="server">
        </f:HiddenField>
        <f:HiddenField ID="hdSelectBranchIDs" runat="server">
        </f:HiddenField>
    </form>
</body>
</html>
